package com.jiuling.qiniu.oss.enums;

import com.qiniu.storage.Region;

/**
 * 区域枚举
 * @author 紫灵
 * @date 2023年05月23日 10时44分10秒
 */
public enum RegionEnum {

    HUA_DONG(new Region[]{Region.region0(),Region.huadong()}),
    HUA_BEI(new Region[]{Region.region1(), Region.huabei()}),
    HUA_NAN(new Region[]{Region.region2(), Region.huanan()}),
    BEI_MEI(new Region[]{Region.regionNa0(), Region.beimei()}),
    XIN_JIA_PO(new Region[]{Region.regionAs0(), Region.xinjiapo()});

    private final Region[] regions;

    RegionEnum(Region[] regions) {
        this.regions = regions;
    }

    public Region[] getRegions() {
        return regions;
    }
}
